BASE_URL = "https://guba.eastmoney.com/"
POSTING_LIST_URL =  BASE_URL + "list,"
POSTING_URL = BASE_URL + "news,"
LIST_URL =  BASE_URL + "list,"
RANK_URL = "http://guba.eastmoney.com/rank/"
STATUS_INFO_PATH = './required_posting_lists/cur_info.json'

headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Cache-Control': 'max-age=0',
    'Connection': 'keep-alive',
    'Cookie': 'qgqp_b_id=6bbe06ff8c2f7756e25acd72ffac0c42; st_si=02764392092907; rankpromt=1; HAList=ty-1-603798-%u5EB7%u666E%u987F; st_asi=delete; st_pvi=31292694218658; st_sp=2023-06-03%2015%3A28%3A43; st_inirUrl=https%3A%2F%2Fwww.bing.com%2F; st_sn=66; st_psi=2023062815550999-117001356556-0668480505',
    'Host': 'guba.eastmoney.com',
    'Referer': 'https://guba.eastmoney.com/list,603798_4.html',
    'Sec-Ch-Ua': '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
    'Sec-Ch-Ua-Mobile': '?0',
    'Sec-Ch-Ua-Platform': '"Windows"',
    'Sec-Fetch-Dest': 'document',
    'Sec-Fetch-Mode': 'navigate',
    'Sec-Fetch-Site': 'same-origin',
    'Sec-Fetch-User': '?1',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
}

# 配置Chrome浏览器的驱动路径
chrome_driver_path = 'chrome-driver/chromedriver'

# 股票名称和编号的dict
STOCK_ID_NAME_JSON = "./stock_id.json"

# 列表CSV路径
POSTING_LIST_ROOT = "./required_posting_lists"